package ${basePackage}.service;


import ${basePackage}.dto.*;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;
import java.util.List;


@FeignClient("${application}")
public interface ${modelNameUpperCamel}ServiceClient {

	@RequestMapping( value = {"${baseRequestMapping}/add"}, method = {RequestMethod.POST} )
    public Result add(@RequestBody ${modelNameUpperCamel} ${modelNameLowerCamel},@RequestParam("userId") String userId);

	@RequestMapping( value = {"${baseRequestMapping}/delete"}, method = {RequestMethod.POST} )
	public Result delete(@RequestParam("id") Integer id,@RequestParam("userId") String userId);

	@RequestMapping( value = {"${baseRequestMapping}/update"}, method = {RequestMethod.POST} )
	public Result update(@RequestBody ${modelNameUpperCamel} ${modelNameLowerCamel},@RequestParam("userId") String userId);

	@RequestMapping( value = {"${baseRequestMapping}/detail"}, method = {RequestMethod.POST} )
	public Result<${modelNameUpperCamel}> detail(@RequestParam("id") Integer id,@RequestParam("userId") String userId);

	@RequestMapping( value = {"${baseRequestMapping}/list"}, method = {RequestMethod.POST} )
	public Result<List<${modelNameUpperCamel}>> list(@RequestBody ${modelNameUpperCamel} ${modelNameLowerCamel}, @RequestParam("page") Integer page, @RequestParam("size") Integer size,@RequestParam("userId") String userId);
}
